package com.starsoft.frame.base.web;

import java.util.List;
import java.util.Map;

import javax.servlet.ServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.starsoft.frame.base.service.FlexsetService;


@RestController
@RequestMapping(value = "/base/flexset/")
public class FlexsetController {

	@Autowired
	FlexsetService fs=null;
	
	@RequestMapping(value = "queryByCode")
	public Map<String, List<?>> queryByCode(ServletRequest request) {
		return fs.getFlexsetValues(request.getParameter("FLEXSET_CODES"));
	}
	
}
